/**
 * J-Code pages
 *
 */

@jcodeBase: #c80076;
@jcodeSeeMoreText: #ffffff;
@jcodeSeeMoreTextHover: #000000;
@jcodeImageBorder: #cccccc;
@jcodeImageShadow: #808080;
@jcodeLogoStrikeThrough: #cbcbcb;
@jcodeLogoBg: #ffffff;
@jcodeDate: #909090;
@jcodeSearchTitle: #808080;

.page-category-j-code, .section-j-code {
  a:hover {
    color: @jcodeBase;
  }

  .jessica-btn {
    background-color: @jcodeBase;
    color: @jcodeSeeMoreText;

    &:hover {
      color: @jcodeSeeMoreTextHover;
    }
  }
}

/**
 * j-code main page
 */
.page-category-j-code {
  .jessica_jcode_title {
    border-bottom: 1px solid @jcodeLogoStrikeThrough;
    margin-top: -30px;
    margin-bottom: 45px;
    padding: 0;
    text-align: center;
    width: 100%;
  }

  .jessica_jcode_title::after {
    border-bottom: 1px solid @jcodeLogoStrikeThrough;
    clear: both;
    content: "";
    display: block;
    position: relative;
    top: -8px;
    width: 100%;
  }
  .jessica_jcode_title > h2 {
    background: @jcodeLogoBg url("../images/pages/JCode_logo.png") no-repeat scroll 0 0;
    color: @jcodeBase;
    display: inline-block;
    height: 55px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    min-width: 260px;
    position: relative;
    top: 29px;
    z-index: 1;
  }

  #block-views-nodequeue-10-block {
    position: relative;

    .views-field-title {
      position: absolute;
      width: 100%;
      top: 400px;
      font-size: 2.8em;
      font-weight: 700;
      color: white;
      text-align: center;
    }
  }


  .block-title {
      color: @jcodeBase;
  }

  .view-j-code-latest-articles {
    margin-bottom: 70px;

    h4 {
      font-size: 16px;
      margin-top: -5px;
    }

    .block-image {
        -webkit-box-shadow: 0px 0px 10px 1px @jcodeImageShadow;
        -moz-box-shadow: 0px 0px 10px 1px @jcodeImageShadow;
        box-shadow: 0px 0px 10px 1px @jcodeImageShadow;
    }
  }

  .view-category {
    h4.title {
      font-size: 22px;
    }

    .block-image {
        -webkit-box-shadow: 0px 0px 10px 1px @jcodeImageShadow;
        -moz-box-shadow: 0px 0px 10px 1px @jcodeImageShadow;
        box-shadow: 0px 0px 10px 1px @jcodeImageShadow;
    }

    .category-wrapper {
        margin-top: -50px;
    }

    .jessica-btn {
      background-color: @jcodeBase;
      color: @jcodeSeeMoreText;
      font-size: 20px;
      line-height: 20px;
      font-weight: 600;

    }

    .jessica-btn {
        &:hover {
          color: @jcodeSeeMoreTextHover;
        }
    }

    .views-row-1 {
      span {
        &:before {
          content: "// ";
        }
        &:after {
          content: " //";
        }
      }
    }
  }
}


/**
 * j-code subpage
 */
.section-j-code {
  .pink {
    color: @jcodeSearchTitle;
  }

  .jcode-sub-category {
    .search-title {
      h2{
        background-image: url(../images/pages/JCode_logo.png);
        background-repeat: no-repeat;
        text-indent: -9999px;
      }
    }

    .jcode-sub-wrapper {
      position: relative;
      width: 220px;
      height: 400px;
      padding: 14px;
      -moz-box-sizing: border-box;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
    }

    .jcode-portrait {
      img {
        width: 190px;
        height: 286px;
      }

      .field-title {
        width: 190px;
        height: 80px;
        line-height: 80px;
        text-align: center;

        a {
          display: inline-block;
          vertical-align: middle;
          line-height: normal;
        }
      }
    }

    .jcode-lanscape {
      .field-image {
        width: 190px;
        border: 1px solid @jcodeImageBorder;
      }
      img {
        width: 190px;
        height: 126px;
      }
    }

    .field-title {
      font-size: 18px;
      font-weight: 700;
      margin-left: 0;
      margin-right: 0;
      margin-top: 5px;
      margin-bottom: 10px;
    }

    .field-created {
      font-size: 16px;
      text-align: right;
      color: #909090;
      margin-top: 5px;
      margin-bottom: 3px;
    }

    .field-body {
      font-size: 18px;
    }

    .more-detail {
      text-align: center;
    }

    .jessica-btn {
      min-width: 180px !important;
      position: absolute;
      bottom: 4px;
      left: 19px;
    }

    .jcode-sub-wrapper {
      -webkit-box-shadow: 0px 0px 10px 1px @jcodeImageShadow;
      -moz-box-shadow: 0px 0px 10px 1px @jcodeImageShadow;
      box-shadow: 0px 0px 10px 1px @jcodeImageShadow;
      margin-bottom: 8px;

    }
  }


  .recommended-articles {
    .views-row {
      //font-size: 14px;
      margin: 0px 0px 20px;

      .views-field-field-thumbnail {
        float: left;
        width: 100px;
        margin: 0;
        border: 1px solid @jcodeImageBorder;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
        box-sizing: border-box;
      }

      .content {
        width: 180px;
        float: right;
        padding-left: 1em;
        .views-field-title {
          overflow: hidden;
        }

        .views-field-field-body {

        }

        .views-field-field-tags {
          color: @jcodeBase;
          a {
            text-decoration: none;
          }
          position: absolute;
          bottom: 0;
          max-height: 40px;
          overflow: hidden;
        }
      }

      .views-field {
        margin: 0 0 0.25em;
      }

      &:after {
        content: "";
        display:block;
        clear: both;
      }

    }

  }

  /*.region-sidebar-first {
    .field-items {
      bottom: 0;
      color: @jcodeBase;
      max-height: 45px;
      overflow: hidden;
      position: absolute;

    }
    .views-field.views-field-title {
      height: 45px;
      overflow: hidden;
    }
  }*/
}
